package cn.stylefeng.guns.modular.hx.storage.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.hx.storage.entity.TurnoverContainer;
import cn.stylefeng.guns.modular.hx.storage.model.params.TurnoverContainerParam;
import cn.stylefeng.guns.modular.hx.storage.model.result.TurnoverContainerResult;
import cn.stylefeng.roses.core.reqres.response.ResponseData;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mchange.v2.log.PackageNames;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * <p>
 * 周转容器管理 服务类
 * </p>
 *
 * @author ZHDW
 * @since 2024-04-10
 */
public interface TurnoverContainerService extends IService<TurnoverContainer> {


    /**
     * 新增
     *
     * @author ZHDW
     * @Date 2024-04-10
     */
    void add(TurnoverContainerParam param);

    /**
     * 删除
     *
     * @author ZHDW
     * @Date 2024-04-10
     */
    void delete(TurnoverContainerParam param);

    /**
     * 更新
     *
     * @author ZHDW
     * @Date 2024-04-10
     */
    void update(TurnoverContainerParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author ZHDW
     * @Date 2024-04-10
     */
    TurnoverContainerResult findBySpec(TurnoverContainerParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author ZHDW
     * @Date 2024-04-10
     */
    List<TurnoverContainerResult> findListBySpec(TurnoverContainerParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author ZHDW
     * @Date 2024-04-10
     */
    LayuiPageInfo findPageBySpec(TurnoverContainerParam param, String condition);

    int t3(String packNumber);


    ResponseData getExceldata(MultipartFile file, TurnoverContainerParam turnoverContainerParam, ResponseData data)throws IOException;
}
